package com.yx.cloud.bean;

import java.util.List;

/**
 * Created by Administrator on 2019/1/22.
 * 预约/勿扰模式的
 */

public class AlarmClockBean {

    /**
     * dInfo : {"ts":"","userId":"ay1590591328247f9f7p"}
     * data : {"timeZone":8,"timeZoneSec":28800,"value":[{"active":true,"endTime":0,"period":[0,6],"startTime":71640,"unlock":true}]}
     * infoType : 21002
     * message : ok
     */

    private DInfoBean dInfo;
    private DataBean data;
    private int infoType;
    private String message;

    public DInfoBean getDInfo() {
        return dInfo;
    }

    public void setDInfo(DInfoBean dInfo) {
        this.dInfo = dInfo;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getInfoType() {
        return infoType;
    }

    public void setInfoType(int infoType) {
        this.infoType = infoType;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DInfoBean {
        /**
         * ts :
         * userId : ay1590591328247f9f7p
         */

        private String ts;
        private String userId;

        public String getTs() {
            return ts;
        }

        public void setTs(String ts) {
            this.ts = ts;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }
    }

    public static class DataBean {
        /**
         * timeZone : 8
         * timeZoneSec : 28800
         * value : [{"active":true,"endTime":0,"period":[0,6],"startTime":71640,"unlock":true}]
         */

        private int timeZone;
        private int timeZoneSec;
        private List<ValueBean> value;

        public int getTimeZone() {
            return timeZone;
        }

        public void setTimeZone(int timeZone) {
            this.timeZone = timeZone;
        }

        public int getTimeZoneSec() {
            return timeZoneSec;
        }

        public void setTimeZoneSec(int timeZoneSec) {
            this.timeZoneSec = timeZoneSec;
        }

        public List<ValueBean> getValue() {
            return value;
        }

        public void setValue(List<ValueBean> value) {
            this.value = value;
        }

        public static class ValueBean {
            /**
             * active : true
             * endTime : 0
             * period : [0,6]
             * startTime : 71640
             * unlock : true
             */

            private boolean active;
            private int endTime;
            private int startTime;
            private boolean unlock;
            private List<Integer> period;
            private String workNoisy;
            private int waterPump;

            public int getWaterPump() {
                return waterPump;
            }

            public void setWaterPump(int waterPump) {
                this.waterPump = waterPump;
            }

//            private boolean sign;//表示(没有tagIds/segmentTagIds字段时做个标记)

            private List tagIds;
            private List segmentTagIds;

            public List getTagIds() {
                return tagIds;
            }

            public void setTagIds(List tagIds) {
                this.tagIds = tagIds;
            }

            public List getSegmentTagIds() {
                return segmentTagIds;
            }

            public void setSegmentTagIds(List segmentTagIds) {
                this.segmentTagIds = segmentTagIds;
            }

//            public boolean isSign() {
//                return sign;
//            }
//
//            public void setSign(boolean sign) {
//                this.sign = sign;
//            }


            public boolean isActive() {
                return active;
            }

            public void setActive(boolean active) {
                this.active = active;
            }

            public int getEndTime() {
                return endTime;
            }

            public void setEndTime(int endTime) {
                this.endTime = endTime;
            }

            public int getStartTime() {
                return startTime;
            }

            public void setStartTime(int startTime) {
                this.startTime = startTime;
            }

            public boolean isUnlock() {
                return unlock;
            }

            public void setUnlock(boolean unlock) {
                this.unlock = unlock;
            }

            public List<Integer> getPeriod() {
                return period;
            }

            public void setPeriod(List<Integer> period) {
                this.period = period;
            }

            public String getWorkNoisy() {
                return workNoisy;
            }

            public void setWorkNoisy(String workNoisy) {
                this.workNoisy = workNoisy;
            }
        }
    }
}
